package cn.edu.sziit.bbs.model;

import java.util.Date;

public class Reply {
    private Integer replyId;

    private String replyContent;

    private Integer userId;

    private Integer postId;

    private Date replyCreteTime;

    private String replyPhoto;

    private User user;

    public Integer getReplyId() {
        return replyId;
    }

    public void setReplyId(Integer replyId) {
        this.replyId = replyId;
    }

    public String getReplyContent() {
        return replyContent;
    }

    public void setReplyContent(String replyContent) {
        this.replyContent = replyContent == null ? null : replyContent.trim();
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getPostId() {
        return postId;
    }

    public void setPostId(Integer postId) {
        this.postId = postId;
    }

    public Date getReplyCreteTime() {
        return replyCreteTime;
    }

    public void setReplyCreteTime(Date replyCreteTime) {
        this.replyCreteTime = replyCreteTime;
    }

    public String getReplyPhoto() {
        return replyPhoto;
    }

    public void setReplyPhoto(String replyPhoto) {
        this.replyPhoto = replyPhoto == null ? null : replyPhoto.trim();
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "Reply{" +
                "replyId=" + replyId +
                ", replyContent='" + replyContent + '\'' +
                ", userId=" + userId +
                ", postId=" + postId +
                ", replyCreteTime=" + replyCreteTime +
                ", replyPhoto='" + replyPhoto + '\'' +
                ", user=" + user +
                '}';
    }
}